set(sources 
tasklist.h
tasklist.c
tasklist-dialogs.h
tasklist-dialogs.c
xfce-panel-plugin.h
xfce-panel-plugin.c 
xfce-fake.h
xfce-fake.c
)

INCLUDE(FindPkgConfig)
find_package(PkgConfig REQUIRED) 
pkg_check_modules(GTK REQUIRED gtk+-2.0) 

pkg_check_modules(WNCK REQUIRED "libwnck-1.0 > 2.20" )


include_directories(
${WNCK_INCLUDE_DIRS}
${GTK_INCLUDE_DIRS} 
)

link_directories(
${GTK_INCLUDE_DIRS}
${WNCK_DIRS}
) 

add_executable(${PROJECT_NAME} ${sources})

target_link_libraries(
${PROJECT_NAME} 
${WNCK_LIBRARIES}
${GTK_LIBRARIES}
)

install (TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ./)
